﻿package net.wangit.view.chart.util;

import net.wangit.util.Checker;

import org.jfree.chart.block.BlockBorder;


public class BorderUtil {

	public BorderUtil() {
	}

	public static final BlockBorder getBorder(double top, double left,
			double bottom, double right, String color) {
		if (Checker.isEmpty(color))
			return new BlockBorder(top, left, bottom, right);
		try {
			return new BlockBorder(top, left, bottom, right, ColorUtil
					.getColor(color));
		} catch (Exception e) {
			return BlockBorder.NONE;
		}
	}
}
